ifeq ($(CFG_SDK_EXPORT_FLAG),)
    ifneq ($(srctree),)
    KERNEL_DIR := $(srctree)
    SDK_DIR := $(shell cd $(KERNEL_DIR)/../../.. && /bin/pwd)
    else
    SDK_DIR := $(shell cd $(CURDIR)/../../../../../../.. && /bin/pwd)
    endif
endif

include $(SDK_DIR)/build/base.mk
include $(SDK_DIR)/source/gmp/modules/isp/arch.mk

ISP_ROOT := $(GMP_DIR)/modules/isp

MOD_NAME := isp_sensor_i2c

SRCS := sensor_i2c.c

SDK_KER_CFLAGS += -D$(CHIPARCH) -D_USE_LLI_ -DRELEASE -DUSER_BIT_32 -DKERNEL_BIT_32 -D_GNU_SOURCE

SDK_KER_CFLAGS += -I$(GMP_DIR)/modules/osal/include \
		-I$(GMP_DIR)/include \
	        -I$(ISP_ROOT)/ext_inc \
		-I$(ISP_ROOT)/kernel/mkp/include \
		-I$(ISP_ROOT)/kernel/arch/$(CHIPARCH)/include \
		-I$(ISP_ROOT)/user/firmware/arch/$(CHIPARCH)/include \
		-I$(ISP_ROOT)/user/firmware/include

include $(SDK_DIR)/build/sdk_ko_rules.mk
